<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员登录</title>
    <link rel="stylesheet" type="text/css" href="../../css/Login.css">
    <style>

    </style>
</head>
<body>
<div id="app">
    <div class="login-container">
        <h2>管理员登录</h2>
        <form @submit.prevent="login">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" v-model="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" v-model="password" required>
            </div>
            <div class="form-group">
                <input type="submit" value="登录">
            </div>
        </form>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            username: '',
            password: ''
        },
        methods: {
            login() {
                // 在这里可以添加登录逻辑，比如发送请求到服务器进行验证
                console.log('用户名:', this.username);
                console.log('密码:', this.password);
                // 这里仅为演示，实际应用中需添加登录逻辑
            }
        }
    });
</script>
</body>
</html>
